package org.jeecg.modules.sggg.entity;

import java.io.Serializable;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 判定记录表
 * @Author: jeecg-boot
 * @Date:   2022-10-26
 * @Version: V1.0
 */
@Data
@TableName("sg_decision_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sg_decision_record对象", description="判定记录表")
public class SgDecisionRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**居民编号*/
	@Excel(name = "居民编号", width = 15, dictTable = "sg_member", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "居民编号")
    private String memberId;
	/**高压分级*/
	@Excel(name = "高压分级", width = 15, dicCode = "decision_type")
    @ApiModelProperty(value = "高压分级")
    private Integer bpGrade;
	/**血压危险因素*/
	@Excel(name = "血压危险因素", width = 15, dicCode = "decision_blutdruck")
    @ApiModelProperty(value = "血压危险因素")
    private String bpDanger;
	/**靶器官损害*/
	@Excel(name = "靶器官损害", width = 15, dicCode = "decision_glucose")
    @ApiModelProperty(value = "靶器官损害")
    private String organ;
	/**伴临床疾患*/
	@Excel(name = "伴临床疾患", width = 15, dicCode = "decision_lipid_level")
    @ApiModelProperty(value = "伴临床疾患")
    private String bpClinical;
	/**糖尿病类型*/
	@Excel(name = "糖尿病类型", width = 15, dicCode = "decision_lipid_level")
    @ApiModelProperty(value = "糖尿病类型")
    private Integer bgType;
	/**糖尿病病程*/
	@Excel(name = "糖尿病病程", width = 15)
    @ApiModelProperty(value = "糖尿病病程")
    private Integer bgTime;
	/**心血管病危险因素*/
	@Excel(name = "心血管病危险因素", width = 15)
    @ApiModelProperty(value = "心血管病危险因素")
    private String bgDanger;
	/**半临床*/
	@Excel(name = "半临床", width = 15)
    @ApiModelProperty(value = "半临床")
    private String bgClinical;
	/**c*/
	@Excel(name = "c", width = 15)
    @ApiModelProperty(value = "c")
    private Integer tcNum;
	/**有无高血压0没有，1有*/
	@Excel(name = "有无高血压0没有，1有", width = 15)
    @ApiModelProperty(value = "有无高血压0没有，1有")
    private Integer tcBp;
	/**血脂危险因素*/
	@Excel(name = "血脂危险因素", width = 15)
    @ApiModelProperty(value = "血脂危险因素")
    private String tcDanger;
	/**冠心病及其它危症*/
	@Excel(name = "冠心病及其它危症", width = 15)
    @ApiModelProperty(value = "冠心病及其它危症")
    private String tcChr;

	/**身份证*/
    @TableField(exist = false)
    @ApiModelProperty(value = "身份证")
    private String idCard;

    /**手机号*/
    @TableField(exist = false)
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**居民名称*/
    @TableField(exist = false)
    @ApiModelProperty(value = "居民名称")
    private String userName;

    @ApiModelProperty(value = "高血压危险等级")
    private Integer bpHazardLevel;

    @ApiModelProperty(value = "高血糖危险等级")
    private Integer bgHazardLevel;

    @ApiModelProperty(value = "高血脂危险等级")
    private Integer tcHazardLevel;

    @TableField(exist = false)
    private List<String> responsibleAgencies;
}
